import http from '../utils/http'
// 
/**
 *  @parms resquest 请求地址 例如：http://197.82.15.15:8088/request/...
 *  @param '/testIp'代表vue-cil中config，index.js中配置的代理
 */

// get请求
const testApi = {
	getListAPI(params) {
		return http.get('/api/joke/list', params)
	},
	postFormAPI(params) {
		return http.post('/api/user/reg', params)
	},
	getStationAPI(params){
		// /idsDevice/searchPage /mobile/services/getStationPage
		return http.get('/mobile/services/getStationPage', params)
	},
	getStationInstalledAPI(params){
		// /idsDevice/searchPage /mobile/services/getStationPage
		return http.get('/mobile/services/getStationInstalledPage', params)
	},
	getStationMonitor(params){

		return http.get('/mobile/services/getSearchStationMonitor', params)
	},
	getVideoInstall(params){
		return http.get('/mobile/services/getSearchVideoInstall', params)
	},
	getRfidStationMonitor(params){
		return http.get('/mobile/services/getRfidStationPage', params)
	},
	getRfidVideoInstall(params){
		return http.get('/mobile/services/getRfidStationInstallPage', params)
	},
	geRfidtOfflineDevice(params){
		return http.get('/mobile/services/getRfidOfflineDevicePage', params)
	},
	/**
	 * 新增安装
	 */
	addInstall(params){
		return http.post('/mobile/services/idsDevice/addInstallDetail', params)
	},
	addSiteInstall(params){
		return http.post('/mobile/services/addRepeaterDevice', params)
	},
	uploadFile(data) {
		return http.post('/file/upload',
			data, {'Content-Type': 'multipart/form-data'});
	}
}
export default testApi
